'use strict';
app.controller('HomeCtrl', function($scope,$state,$ionicSlideBoxDelegate,BaseFactory) {
    $scope.Classify = [] ;
    $scope.homeSlide = [] ;
    BaseFactory.homeSlide().then(function(data){
      console.log(data);
      $scope.homeSlide = data;
    });
    BaseFactory.home().then(function(data){
      $scope.Classify = data ;
      console.log(data);
    });

    $scope.pro_detail = function(id){
      console.log();
        $state.go('tab.detail',{id:id})
    };
    $scope.go_url = function(url){
      alert('跳转页面'+url);
    };
    $scope.drag_left=function(){
      console.log('left');
    }
  })

